﻿@using KRM.Core
@using KRM.Core.Library

@{
    Layout = null;
}
<!doctype html>
<html>
<head>
    <meta charset="utf-8" />
    <title>@ViewBag.Title</title>
    <!-- Bootstrap -->
    <link href="~/css/bootstrap.css" rel="stylesheet" />
    <!-- dataTables -->
    <link rel="stylesheet" href="/css/plugins/datatable/TableTools.css">
    <!-- Theme CSS -->
    <link rel="stylesheet" href="/css/style.css">
    <!-- Color CSS -->
    <link rel="stylesheet" href="/css/themes.css">
    <!-- Fullcalendar -->
    <link rel="stylesheet" type="text/css" media="screen" href="/css/bootstrap-datetimepicker.min.css">
    <!-- custom design -->
    <link rel="stylesheet" href="/css/custom.css">
    <!-- jQuery -->
    <script src="/js/jquery.min.js"></script>
    <script src="~/js/jquery.signalR-1.0.0-rc2.js"></script>
    <script src="/signalr/hubs" type="text/javascript"></script>
    <script src="~/js/espresso.js"></script>
    <!-- Bootstrap -->
    <script src="/js/bootstrap.min.js"></script>
    <!-- dataTables -->
    <script src="/js/plugins/datatable/jquery.dataTables.min.js"></script>
    <script src="/js/plugins/datatable/TableTools.min.js"></script>
    <script src="/js/plugins/datatable/ColReorder.min.js"></script>
    <script src="/js/plugins/datatable/ColVis.min.js"></script>
    <script src="/js/plugins/datatable/FixedColumns.min.js"></script>
    <script src="/js/plugins/datatable/dataTables.scroller.min.js"></script>
    <script src="~/js/jquery.floatThead.min.js"></script>
    <script src="/hr/js/plugins/jquery.cookie.min.js" type="text/javascript"></script>
    <script src="/hr/js/plugins/jquery.blockui.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="/js/App-metronicmenu.js"></script>

    <script src="/js/plugins/ckeditor/ckeditor.js"></script>
    <script src="/js/plugins/ckfinder/ckfinder.js"></script>
    <script src="~/js/jquery.MultiFile.js"></script>
    <script src="/js/plugins/datepicker/bootstrap-datepicker.js"></script>
    <script type="text/javascript" src="/js/bootstrap-datetimepicker.min.js"></script>
    <script src="/js/plugins/validation/jquery.validate.min.js"></script>
    <script src="/js/product.js"></script>
    <script src="/js/Custom.js"></script>
    <script src="/js/eakroko.js"></script>
    <script src="/js/voucher.js"></script>
    <script src="~/js/orderview.js"></script>
    <script src="~/js/rdm.js"></script>
</head>
<body class="popup">
    @if (tblCompanyVariable.ListIpAccessKRMWeb.Contains(Request.UserHostAddress))
    {
        if (User.Identity.IsAuthenticated)
        {
        @RenderBody()
        }
        else
        {
        @RenderBody()
            var returnUrl = Request.RawUrl != "/" ? "?returnurl=" + Request.RawUrl : "";
            Response.Redirect("/users/login" + returnUrl);
        }
    }
    else
    {
        @RenderBody()
        Response.Redirect("/users/invalidipaddress");
    }
    <script>
        (function (i, s, o, g, r, a, m) {
            i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
                (i[r].q = i[r].q || []).push(arguments)
            }, i[r].l = 1 * new Date(); a = s.createElement(o),
            m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
        })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
        ga('create', 'UA-6581490-8', 'loveespres.so');
        ga('send', 'pageview');
    </script>
    @*<script type="text/javascript">
        (function () {
            var s = document.createElement("script");
            s.type = "text/javascript";
            s.async = true;
            s.src = '//api.usersnap.com/load/' +
                    'e40bb243-4169-4908-9962-85443cc00656.js';
            var x = document.getElementsByTagName('script')[0];
            x.parentNode.insertBefore(s, x);
        })();
</script>*@
</body>
</html>
